﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAlgorithm.二叉树
{
    public class TreeNode
    {
        /// <summary>
        /// 树节点
        /// </summary>
        public TreeNode(string x) { 
          this.Value = x;
        }
        /// <summary>
        /// 值
        /// </summary>
        public string Value { get; set; }
        /// <summary>
        /// 左节点
        /// </summary>
        public TreeNode? Left { get; set; }
        /// <summary>
        /// 右节点
        /// </summary>
        public TreeNode? Right { get; set; }
    }
}
